﻿@model ALTP.Models.LoginModel

<script>
    $(function () {
        $("form.ajaxLogin").submit(function () { 
            $.post($(this).attr("action"), $(this).serialize(), function (data) {
                $("#msgLogin").html(data.Message); 
                if (data.IsOk == true) {
                    sansang();
                    return true;
                }
            }); 
            return false;
        }); 
    });
</script>

<div class="page ">
    <div class="innerPage">
        <div class="box0">
            <a href="javascript:void(0)">
                <img src="/Content/Imgs/icon_logo_in_app.png" />
            </a>
        </div>
        <div class="box1 formdkdn"> 
            @using (Html.BeginForm("Login", "Account", FormMethod.Post, new { @class = "ajaxLogin" }))
            {
                @Html.AntiForgeryToken()
                @Html.ValidationSummary()
                <table>
                    <tr>
                        <td>Tài khoản</td>
                        <td>
                            <input type="text" name="UserName" size="20" id="uname" placeholder="Tài khoản" />
                        </td>
                    </tr>
                    <tr>
                        <td>Mật khẩu</td>
                        <td>
                            <input type="password" name="Password" id="password" placeholder="Mật khẩu" />
                        </td>
                    
                    </tr>
                    <tr>
                        <td></td>
                        <td><div style="text-align:center;color:red; font-weight:bold;" id="msgLogin"></div></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="submit" class="login_submit" value="Đăng nhập" />
                            <a href="javascript:void(0)" title="Đăng ký" class="dangky" onclick="mySwiper.swipeTo(0)">Đăng ký</a>
                        </td>
                    </tr>
                </table>
            }
            
        </div>
    </div>
</div>
 
@*<section class="social" id="socialLoginForm">
    @Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl })
</section>*@

